package swb.api.com.common.exception;

import lombok.Data;

@Data
public class SwbException extends RuntimeException {

    private static final long serialVersionUID = 1L;
    private String code;
    private String message;

    public SwbException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public SwbException(String message) {
        super(message);
        this.message = message;
    }

}
